﻿using Messhall.Domain.Permission.BusinessObjects;
using Messhall.Framework.Repository.Repositorys;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Messhall.Repository.Permission.EntityTypeConfigurations
{
    public class UsersRoleEntityConfiguration : EntityTypeConfigurationBase<UsersRoleEntity>
    {
        public override void Configure(EntityTypeBuilder<UsersRoleEntity> builder)
        {
            builder.ToTable("usersrole");
            builder.Property(c => c.RoleKeyId).IsRequired();
            builder.Property(c => c.UsersKeyId).IsRequired();

            base.Configure(builder);
        }
    }
}
